﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GT;
using GT.UI.WinForms;

namespace LibGT_Example1
{
    class Program
    {
        static void Main(string[] args)
        {
            var status = UI.CreateStatusDialog("autoOpen", "Resizable");

            Uri url = new Uri("http://www.google.com/search");
            url.Get(new
                {
                    q = "visual studio 2010"
                },
                data =>
                {
                    Console.WriteLine(Encoding.UTF8.GetString(data));
                    Console.Error.Write("Press any key to quit.");
                },
                null, 
                progress =>
                {
                    Console.WriteLine(progress.ProgressPercentage.ToString() + "%");
                });

            Console.ReadKey(true);
        }
    }
}
